package com.建造者模式.imprrve2;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 抽象出各种物料的建造者
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public abstract class BuildMatterInterface {

    Matter matter;

    public abstract void buildMatterMethod();

    public Matter getMatter(){
        return matter;
    }
}
